package com.longway.core.toolbox.apidoc.models;

import java.util.ArrayList;
import java.util.List;

/**
 * @author ryc
 */
public class ApiDocModel {
	
	private String controllerKey;
	private String title;
	private String des;
	private String version;
	private String module;
	private List<ApiMethodModel> methodsModel = new ArrayList<ApiMethodModel>();
	
	public ApiDocModel(String title, String des, String version ,String controllerKey,String module) {
		super();
		this.title = title;
		this.des = des;
		this.version = version;
		this.controllerKey = controllerKey;
		this.module = module;
	}
	public String getTitle() {
		return title;
	}
	public void setTitle(String title) {
		this.title = title;
	}
	public String getDes() {
		return des;
	}
	public void setDes(String des) {
		this.des = des;
	}
	public List<ApiMethodModel> getMethodsModel() {
		return methodsModel;
	}
	public String getVersion() {
		return version;
	}
	public void setVersion(String version) {
		this.version = version;
	}
	public String getControllerKey() {
		return controllerKey;
	}
	public void setControllerKey(String controllerKey) {
		this.controllerKey = controllerKey;
	}
	public ApiDocModel addMethodsModel(ApiMethodModel methodModel){
		if(methodModel != null){
			methodsModel.add(methodModel);
		}
		return this;
	}
	public String getModule() {
		return module;
	}
	public void setModule(String module) {
		this.module = module;
	}
	
}
